
angular.module('common.device', [
    'ui.router',
    'module.devup',
    'service.devup',
    'service.fileupload',
    'angularUtils.directives.dirPagination',

])
    .run(
        ['$rootScope', '$state', '$stateParams', '$location', function ($rootScope, $state, $stateParams, $location) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
    }])
    .config(['$httpProvider', function ($httpProvider) {
        $httpProvider.defaults.withCredentials = true;
    }])
    .config(
    [          '$stateProvider', '$urlRouterProvider','$locationProvider',
        function ($stateProvider,   $urlRouterProvider,$locationProvider) {
            $urlRouterProvider
                .otherwise('/upload');
        }
    ]);